<?php get_header(); ?>

		   <div id="subc">

		<?php if (have_posts()) : ?>

		 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>				
		<h1><?php echo single_cat_title(); ?></h1>
		
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h1><?php the_time('F jS, Y'); ?> Archives</h1>
		
	 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h1><?php the_time('F Y'); ?> Archives</h1>

		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h1>Archive for <?php the_time('Y'); ?> archives</h1>
		
	  <?php /* If this is a search */ } elseif (is_search()) { ?>
		<h1>Search Results</h1>
		
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h1>Author Archive</h1>

		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h1>Blog Archives</h1>

	<?php } ?>


	<?php while (have_posts()) : the_post(); ?>

		<div class="s-entry"><h3><span class="id"><?php echo zeroise($post->ID, 3); ?></span><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3></div>
	<div class="post-info">		
		   <strong>Filed:</strong> <?php the_category(', ') ?> | <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
		<ul>
		   <li><strong>Author:</strong> <?php the_author_posts_link(); ?></li>
		   <li><strong>Posted:</strong> <?php the_time('F jS, Y') ?></li>
		</ul>
		</div>
	
	<?php endwhile; ?>

		<div class="hundred">
			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>
	
	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>
		
	</div>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>